import { Component } from 'vue';
import ModelSelect from './ModelSelect.vue';
import CanvasEdit from './CanvasEdit.vue';
// ... 导入其他组件

// 组件映射表
export const componentMap: Record<string, Component> = {
    'model-select': ModelSelect,
    'canvas-edit': CanvasEdit,
    // ... 其他组件映射
};

// 组件工厂函数
export function createWorkflowComponent(type: string): Component | undefined {
    return componentMap[type];
} 